<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of person
 *
 * @author diego
 */
class person {

    public $id_user;
    public $name;
    public $last_name;
    public $university;
    public $graduationDate;
    public $mail1;
    public $mail2;
    public $address;
    public $phone;
    public $mobile;
    public $pregrado;
    public $posgrado;
}

class questionary {
    public $p1;
    public $p2;
    public $p3;
    public $p4;
    public $p5;
    public $p6;
    public $p7;
    public $p8;
    public $p9;
    public $p10;
    public $p11;
    public $p12;
    public $p13;
    public $p16;
}

 //Almacenamienot en la base de datos
        public function storedUserDb(){

                $db=bd_conection();

                $db_query="insert into user values('$this->id_user','$this->user_name','$this->user_last_name','$this->user_university','$this->user_graduationDate','$this->mail1','$this->mail2','$this->address','$this->phone1','$this->mobile','$this->carrera')";
                /*echo $db_query;*/


                //insercion de datos a la base de datos
                $db_res = mysql_query($db_query, $db);
                if (mysql_affected_rows() > 0)
                        return true;
                else
                        return false;
        }

?>
